<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function bijiao() {
            var a = +prompt('请输入第一个数字')
        var b = +prompt('请输入第二个数字')
        if (a > b) {
            alert(a)
        }else if (a<b) {
            alert(b)
        }else {
            alert('这两个数字相等')
        }
        }
        bijiao()
    </script>
</body>
</html>